<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>RTE test</title>
<link rel="stylesheet" type="text/css" href="gfx/rte.css" />


<script type="text/javascript" src="../../os3jslib/liwe.js"></script>
<script type="text/javascript" src="../../os3jslib/dom.js"></script>
<script type="text/javascript" src="../../os3jslib/utils.js"></script>
<script type="text/javascript" src="../../os3jslib/object_enh.js"></script>
<script type="text/javascript" src="../../os3jslib/string_enh.js"></script>
<script type="text/javascript" src="../wwl.js"></script>
<script type="text/javascript" src="rte.js"></script>

<script type="text/javascript">
function init ()
{
	var u = new WWL.rte ( 'prova' );

	u.render ( "test" );
}

function get_html ()
{
	var rte = WWL.get_instance ( "rte", "prova" );

	//alert ( liwe.utils.map_entities ( rte.get_html () ) );
	alert ( rte.get_html () );
}

function set_html ()
{
	var rte = WWL.get_instance ( "rte", "prova" );

	rte.set_html ( "Ciao <b>mondo</b>" );
}

</script>
</head>
<body onload="init()">

	<div id="test"></div>
	<a href="javascript:get_html()">get HTML</a>
	<a href="javascript:set_html()">set HTML</a>

</body>
</html>
